package org.charles.zhifou.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 题目
 * @TableName question
 */
@Data
public class Question implements Serializable {
    @Schema(description = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "题目内容 (JSON)")
    private String questionContent;

    @Schema(description = "应用 id")
    private Long appId;

    @Schema(description = "创建用户 id")
    private Long userId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "是否删除")
    @TableLogic
    @JsonIgnore
    private Integer isDeleted;

    @Serial
    private static final long serialVersionUID = 1L;
}